package com.tencent.examples.core.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :  CHENWEN
 * @Description :
 * @Creation Date:  2019/4/1
 */
@RestController("/web/admin/searchObjects/")
public class BkFiledsController {

    @GetMapping("userFields")
    public JSONObject findFields(String userName, String mx) {

        JSONObject jsonObject = new JSONObject();

        JSONArray jsonArray = new JSONArray();
        jsonArray.add("aa");
        jsonArray.add("ff");
        jsonArray.add("www");
        jsonArray.add("rrr");

        jsonObject.put("data", jsonArray);

        return jsonObject;
    }
}
